<template>
    <AutoPage :type="2" @getScale="getScale" title="重庆法院全流程网上办案数据">
        <div class="content-box">
            <div class="left">
                <div class="left-top">
                    <div class="left-top-left">
                        <leftModule />
                    </div>
                    <div class="left-top-right">
                        暂无视频
                    </div>
                </div>
                <div class="left-bottom">
                    <dv-border-box-8 :reverse="true">
                        <DevicePosition />
                    </dv-border-box-8>
                </div>
            </div>
            <div class="right">
                <div class="h-270">
                    <DescDetail />
                </div>
                <div class="flex-1">
                    <Card title="今日访客情况" >
                        <VisitorSituation/>
                    </Card>
                </div>
                <div class="flex-1 mt-27">
                    <Card title="门禁运行情况统计" >
                        <AccessControl/>
                    </Card>

                </div>
            </div>
        </div>
    </AutoPage>
</template>

<script>
import AutoPage from "@/components/AutoPage.vue";
import Card from "@/components/Card.vue";
import leftModule from './charts/left-module.vue';
import DevicePosition from './charts/device-position';
import DescDetail from './charts/desc-detail.vue'
import VisitorSituation from './charts/visitor-situation.vue'
import AccessControl from './charts/access-control.vue'


export default {
    name: 'SmartPolicing',
    components: {
        AutoPage, leftModule, DevicePosition,Card,DescDetail,VisitorSituation,AccessControl
    },
    data() {
        return {
            scale: 1,
        }
    },
    methods: {
        getScale(e) {
            this.scale = e;
        },
    }
}
</script>

<style lang="less" scoped>
.content-box {
    flex: 1;
    display: flex;
    margin: 40px 30px;
    overflow: hidden;

    .left {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;

        .left-top {
            flex: 1;
            display: flex;
            overflow: hidden;

            .left-top-left {
                width: 300px;
            }

            .left-top-right {
                flex: 1;
                background: #3739557c;
                display: flex;
                justify-content: center;
                align-items: center;
                color: #fff;
            }
        }

        .left-bottom {
            height: 280px;
            margin-top: 24px;
        }
    }

    .right {
        width: 549px;
        margin-left: 54px;
        display: flex;
        flex-direction: column;
        .flex-1{
            flex: 1;
        }
        .h-270{
            height: 270px;
        }
        .mt-27{
            margin-top: 27px;
        }
    }
}
</style>